

  const http = require('http')
  const server = http.createServer()

  server.on('request', (req, res) => {
    res.writeHead(200, { 'Content-Type': 'text/html;charset=UTF8' })
    res.end('我爱祖国，我爱自己')
  })

  server.listen(8080, () => {
    console.log('server is running at http://localhost:8080')
  })